package springboot.service.impl;


import org.springframework.stereotype.Service;
import springboot.dao.EngineerDao;
import springboot.doMain.Engineer;
import springboot.service.EngineerService;

import java.util.List;

/**
 *
 */
@Service
public class EngineerServiceImpl implements EngineerService {

    final
    EngineerDao engineerDao;

    public EngineerServiceImpl(EngineerDao engineerDao) {
        this.engineerDao = engineerDao;
    }

    @Override
    public List<Engineer> sel_all_engineer() {
        try {
            return engineerDao.sel_all_engineer();
        } catch (Exception e) {
            return null;
        }

    }
}
